<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="../include/header.jsp" />
<script type="text/javascript" src="<c:url value='/htmlRes/js/tableAddDelete.js'/>"></script>
<script type="text/javascript" src="<c:url value='/htmlRes/js/datepicker/jquery.ui.core.js'/>"></script>
<script type="text/javascript" src="<c:url value='/htmlRes/js/datepicker/jquery.ui.datepicker.js'/>"></script>
<script type="text/javaScript">
<!--
	/* pagination 페이지 링크 function */
	function listPage(){
		$('#writeForm').attr('action', '<c:url value="/currentSystem/currentSystemList.do"/>');
		$('#writeForm').submit();
	}
	
	function saveFormPage() {
		$('#writeForm').attr('action', '<c:url value="/currentSystem/currentSystemSave.do"/>');
		$('#writeForm').submit();
	}
	
	function deletePage() {
		if(confirm('삭제하시겠습니까?')){
			$('#writeForm').attr('action', '<c:url value="/currentSystem/currentSystemDelete.do"/>');
			$('#writeForm').submit();
		}
	}
	
-->
</script>
<!-- contents s -->
<div class="container" id="container">
	<span class="round lt">&nbsp;</span>
    <span class="round rt">&nbsp;</span>
    <span class="round lb">&nbsp;</span>
    <span class="round rb">&nbsp;</span>
    <div class="container_area">
    	<form name="writeForm" id="writeForm" action="<c:url value="/currentSystem/currentSystemWriteForm.do"/>" method="post">
			<input type="hidden" name="scs_sys_key" id="scs_sys_key" value="${resultVO.scs_sys_key }"/>
			<input type="hidden" name="scs_area_key" id="scs_area_key" value="${resultVO.scs_area_key }"/>
        <h2 class="tit_h2">설비 현황 등록</h2>
            <jsp:include page="../include/navi.jsp" />
            <div class="table_wrap"><!-- D : table은 div table_wrap 싸고감 -->
                <table summary="설비 현황 등록" class="table_write">
                    <caption>설비 현황 등록</caption>
                    <colgroup> <!-- D : col width로 테이블 넓이 조절 -->
                        <col width="15%" />
                        <col width="25%" />
                        <col width="15%" />
                        <col width="25%" />
                    </colgroup>
                    <tbody>
                        <tr>
                            <th scope="row"><label for="scs_sys_num">번호</label></th>
                            <td class="alL"><input type="text" name="scs_sys_num" id="scs_sys_num" value="${resultVO.scs_sys_num }" style="width:100%;"/></td>
                            <th scope="row"><label for="scs_sys_name">품명</label></th>
                            <td class="alL">
                            	<input type="text" name="scs_sys_name" id="scs_sys_name" value="${resultVO.scs_sys_name }" style="width:100%;"/>
                            	<span style="color:red">${error_scs_sys_name }</span>
                            </td>
                        </tr>
                        <tr>
                        	<th scope="row"><label for="scs_sys_type">TYPE</label></th>
                            <td class="alL"><input type="text" name="scs_sys_type" id="scs_sys_type" value="${resultVO.scs_sys_type }" style="width:100%;"/></td>
                            <th scope="row"><label for="scs_sys_unit">단위</label>/<label for="scs_sys_qty">수량</label></th>
                            <td class="alL"><input type="text" name="scs_sys_unit" id="scs_sys_unit" value="${resultVO.scs_sys_unit }" style="width:45%;"/>&nbsp;<input type="text" name="scs_sys_qty" id="scs_sys_qty" value="${resultVO.scs_sys_qty }" style="width:45%;"/></td>
                        </tr>
                        <tr>
                            <th scope="row"><label for="scs_sys_spec">장비사양</label></th>
                            <td class="alL"><input type="text" name="scs_sys_spec" id="scs_sys_spec" value="${resultVO.scs_sys_spec }" style="width:100%;"/></td>
                            <th scope="row"><label for="scs_sys_power">동력</label></th>
                            <td class="alL"><input type="text" name="scs_sys_power" id="scs_sys_power" value="${resultVO.scs_sys_power }" style="width:100%;"/></td>
                        </tr>
                        <tr>
                            <th scope="row"><label for="scs_sys_note">비고</label></th>
                            <td class="alL" colspan="3"><input type="text" name="scs_sys_note" id="scs_sys_note" value="${resultVO.scs_sys_note }" style="width:100%;"/></td>
                        </tr>
                    </tbody>                        
                </table>
            </div><!--//table_wrap-->
            <div class="btn_bbs">
            	<a href="<c:url value='/currentSystem/currentSystemList.do' />" onclick="listPage();return false;" class="btn_wh">목록</a>
            	<a href="<c:url value="/currentSystem/currentSystemSave.do" />" onclick="saveFormPage();return false;" class="btn_re">저장</a>
            	<c:if test="${not empty resultVO.scs_sys_key }">
	            	<a href="<c:url value="/currentSystem/currentSystemDelete.do" />" onclick="deletePage();return false;" class="btn_gy">삭제</a>
            	</c:if>
            </div>
            <!-- 검색조건 유지 -->
			<input type="hidden" name="pageIndex" id="pageIndex" value="${resultVO.pageIndex }"/>
    	</form>
    </div><!--//container_area-->
</div>
<!-- contents e -->
<jsp:include page="../include/footer.jsp" flush="true"/>
<jsp:include page="../include/messagealert.jsp" />